package string;

import java.util.Arrays;

public class Split2 {
    public static void main(String[] args) {
        String a ="abc123def456ghj";
        String[] b = a.split("[0-9]+");
        System.out.println(Arrays.toString(b));

        a = "123.456.789";
        b = a.split("\\.");
        System.out.println(Arrays.toString(b));

        a = ".123.465..798....";
        b = a.split("\\.");
        System.out.println(Arrays.toString(b));

    }
}
